﻿using SAP.BusinessOne.Mackinac.Generator.Engine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAP.BusinessOne.Mackinac.Generator
{
    class Program
    {
        static int Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("Invalid args.");
                return -1;
            }

            try
            {
                MackinacEngine.Create().Transform(args[0]);
                return 0;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                return 1;
            }
        }
    }
}
